<template>
  <div class="member-card">
    <div class="header">
      <div class="header__avatar">
        <img :data-src="info.imageUrl"/>
      </div>
      <span class="header__usrname">
        {{info.name}}
      </span>
    </div>
    <div class="main">
      <p>{{info.introduction}}</p>
    </div>
    <!-- <div class="footer">
    </div> -->
  </div>
</template>

<script>
export default {
  name: "MemberCard",
  props: ['info'],
  data() {
    return{
    }
  }
}
</script>

<style scoped lang="scss">
  $light-yellow: #F0DFB3;
  $dark-yellow: #DCB613;
  $orange: #FF5805;
  $dark-red: #9D2932;
  $green: #789263;
  $blue: #177CB2;
  $purple: #7468BE;

  .member-card{
    width: 200px;
    padding: 60px 50px;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    transition: all 0.2s ease-out;
    &:hover {
      width:200px;
      padding: 60px 50px;
      box-shadow: 0 0 0 rgba(0, 0, 0, 0.2),
      0 0 0 rgba(255, 255, 255, 0.8),
      inset 0px 0px 20px rgba(0, 0, 0, 0.1);
      border-radius: 50px;
      -webkit-border-radius: 50px;
      -moz-border-radius: 50px;
    }
    .header{
      display: flex;
      align-items: center;

      .header__avatar{
        position: relative;
        width: 45%;
        padding-top: 45%;
        img{
          position: absolute;
          top: 0;
          left:0;
          width: 100%;
          height: 100%;
          min-height: 50px;
          border-radius: 100%;
        }
      }
      .header__usrname{
        padding: 0 20px;
        font-size: 20px;
        font-weight: bold;
        color: $dark-red;
        text-align: center;
      }
    }

    .main{
      margin: 50px 0;
    }
    // .footer{

    // }
  }
</style>
